Subscribe to a topic

There are lots of devices in IoT. By subscribing to the device's topic, you can listen the messages received by the device.

Request:

"|4|1|2|topic|\r"

Parameters:

topic Set the topic to be subscribed. You may refer to the tutorial to get the device topic.

Returns:

"|4|1|2|1|\r" Successfully subscribed

"|4|1|2|2|1|\r"The topic number that OBLOQ is able to subscribed reachs maximum (one OBLOQ subscribes up to 5 topics), so the subscription fails.

"|4|1|2|2|2|\r" topic subscription failed.

Arduino Sample:

softSerial.print("|4|1|2|BJpHJt1VW|\r");

results matching ""

    No results matching ""